package com.appcheck.recording.handler.action;

import org.json.JSONException;
import org.json.JSONObject;

import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.action.DefaultAction;
import com.appcheck.recording.plugin.AbstractActionConverter;


public final class TextEnteredAction extends DefaultAction implements ActionConvert{
	private String content;
	  
    public final String toString(){
    	JSONObject localJSONObject = new JSONObject();
    	try{
    		localJSONObject.put("class", "TextEnteredAction");
    		localJSONObject.put("id", this.resourceName);
    		localJSONObject.put("index", this.index);
    		localJSONObject.put("text", this.content);
    	}
    	catch (JSONException localJSONException) {}
    	return localJSONObject.toString();
    }

	public final void setContent(String content) {
		this.content = content;
	}
	

	public final String getContent() {
		return content;
	}

	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {

	}
	
	
	

}
